#include<stdio.h>

void Change_arr(int arrA[],int arrB[],int st)
{
	int i = 0;
	for ( i = 0; i < st; i++)
	{
		int temp = arrA[i];
		arrA[i] = arrB[i];
		arrB[i] = temp;
	}
}


int main()
{
	int arrA[] = { 1,2,3,4,5 };
	int arrB[] = { 5,4,3,2,1 };
	int st = sizeof(arrA) / sizeof(arrA[0]);
	Change_arr(arrA, arrB,st);
	int i = 0;
	printf("arrA[]->\n");
	for ( i = 0; i < st; i++)
	{
		printf("%d", arrA[i]);
	}
	printf("\n");
	printf("--------------------------------------------------------------\n");
	printf("arrB[]->\n");
	for ( i = 0; i < st; i++)
	{
		printf("%d", arrB[i]);
	}
	return 0;
}